﻿<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"  x:Class="SLWebApp.MonthSchedule"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignHeight="470" d:DesignWidth="1184" FontFamily="Comic Sans MS" FontSize="12" >
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="5"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <!--操作工具栏-->
        <Border BorderThickness="1" Grid.Row="0" Height="30" BorderBrush="#b4b4b4" CornerRadius="1" >
            <Border.Background>
                <ImageBrush ImageSource="/SLWebApp;component/img/operate_box_bg.png" />
            </Border.Background>
            <StackPanel  Orientation="Horizontal" HorizontalAlignment="Left" >
                <TextBlock Text="操作：" Padding="10,6" Height="30" Width="50"/>
                <Image Width="16" Height="16" Source="/SLWebApp;component/img/Icon-Search.png"></Image>
                <TextBlock Padding="3,6" Cursor="Hand">查寻　　</TextBlock>
                <TextBlock Padding="3,5">|</TextBlock>
                <Image Width="16" Height="16" Source="/SLWebApp;component/img/Icon-Search.png"></Image>
                <TextBlock Padding="3,6" Cursor="Hand">生成计划</TextBlock>
                <TextBlock Padding="3,5">|</TextBlock>
                <Image Width="16" Height="16" Source="/SLWebApp;component/img/Icon-Search.png"></Image>
                <TextBlock Padding="3,6" Cursor="Hand">提交计划</TextBlock>
                <TextBlock Padding="3,5">|</TextBlock>
            </StackPanel>
        </Border>
        <!--查询内容-->
        <Border BorderThickness="1" Grid.Row="1" Height="Auto" BorderBrush="#b4b4b4" CornerRadius="1" >
            <Border.Background>
                <ImageBrush ImageSource="/SLWebApp;component/img/operate_box_bg.png" />
            </Border.Background>
            <StackPanel  Orientation="Horizontal" HorizontalAlignment="Left" Height="30" >
                <TextBlock Text="船代理：" Padding="10,6" Height="30" />
                <TextBlock x:Name="txtAgentName" Padding="5,6" Width="Auto" />
                <TextBlock Text="航线：" Padding="10,6" Height="30" />
                <ComboBox x:Name="comboxSeaRoutes" SelectionChanged="comboxSeaRoutes_SelectionChanged">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <!--<TextBlock Text="{Binding Path=ID}" Width="40" />-->
                                <!--航线代码-->
                                <TextBlock Text="{Binding Path=RouteName}" Width="Auto" />
                                <!--航线名称-->
                            </StackPanel>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <TextBlock Text="服务航线名称：" Padding="10,6" Height="30" />
                <ComboBox x:Name="comboxServiceLine" SelectionChanged="comboxServiceLine_SelectionChanged">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <!--<TextBlock Text="{Binding Path=ID}" Width="60" />-->
                                <!--航线代码-->
                                <TextBlock Text="{Binding Path=RouteName}" Width="Auto" />
                                <!--航线名称-->
                                <TextBlock Text="{Binding Path=ChildRouteName}" Width="Auto" />
                            </StackPanel>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <TextBlock Text="船公司：" Padding="10,6" Height="30" />
                <TextBlock x:Name="txtVesselName" Padding="5,6" Width="Auto" />
                <TextBlock Text="航班班期：" Padding="10,6" Height="30" />
                <ComboBox x:Name="comboxVesselDate">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding Path=RouteName}" Width="Auto" />
                            </StackPanel>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <TextBlock Text="预分码头：" Padding="10,6" Height="30" />
                <TextBlock x:Name="txtTerminal" Padding="5,6" Width="Auto" />
            </StackPanel>
        </Border>
        <!--表格内容-->

        <sdk:DataGrid  Grid.Row="3">
            <sdk:DataGrid.Columns>
                <sdk:DataGridTemplateColumn CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" />
                <sdk:DataGridTemplateColumn CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" />
                <sdk:DataGridTemplateColumn CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" />
                <sdk:DataGridTemplateColumn CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" />
            </sdk:DataGrid.Columns>
        </sdk:DataGrid>
    </Grid>
</UserControl>
